package pta.MOOC.ch02.ex05;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double weight = scanner.nextDouble();
        double height = scanner.nextDouble();
        if(weight<=0||weight>=727||height<=0||height>=2.72){
            System.out.println("input out of range");
            return;
        }
        double BMI = weight/(height*height);
        if(BMI<18.5){
            System.out.println("thin");
        } else if (BMI<24){
            System.out.println("fit");
        } else if (BMI<28) {
            System.out.println("overweight");
        } else if (BMI>=28) {
            System.out.println("fat");
        }
        scanner.close();
    }
}
